<script setup lang="ts">
import useApiStore from '@/core/apiStore'

const apiStore = useApiStore()
const handleApiTest = () => {
  apiStore.testApi({ name: 'alan' })
}
</script>

<template>
  <div>Vue3 project base</div>
  <div>
    <button @click="handleApiTest">api test</button>
  </div>
  <div v-if="apiStore.apiStates.testApi.data">
    {{ apiStore.apiStates.testApi.data }}
  </div>
</template>

<style scoped>
/* Add your styles here */
</style>
